#ifndef DRLISTITEMGROUP_H
#define DRLISTITEMGROUP_H

#include <QWidget>

namespace Ui {
class DRListItemGroup;
}

class DRListItemGroup : public QWidget
{
    Q_OBJECT

public:
    explicit DRListItemGroup(QWidget *parent = 0);
    explicit DRListItemGroup(QString text, int index, bool deleteable = false, QWidget *parent = 0);
    ~DRListItemGroup();
    int index();
    void setIndex(int index);
    QString text();
    void setText(QString text);

signals:
    void onDelete(int);

private slots:
    void deleteClicked();

private:
    Ui::DRListItemGroup *ui;

    int _index;
    bool _deleteable;

    void enterEvent(QEvent * event);
    void leaveEvent(QEvent * event);
};

#endif // DRLISTITEMGROUP_H
